﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blackbird.Utilities
{
    class Log
    {
        private string name;
        public Log(string name)
        {
            this.name = name;
        }

        public void Debug(string info)
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("[" + this.name + "]:[DEBUG]:[" + DateTime.Now + "]###->  " + info);
        }

        public void Info(string info)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("[" + this.name + "]:[INFO]:[" + DateTime.Now + "]###->  " + info);

        }

        public int Fatal(string info)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("[" + this.name + "]:[FATAL]:[" + DateTime.Now + "]###->  " + info);
            return 1;
        }

        public void Warn(String info)
        {
            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.WriteLine("[" + this.name + "]:[WARN]:[" + DateTime.Now + "]###->  " + info);
        }
    }
}
